<?php


namespace App\Validate\Api\V1;

use App\Validate\BaseValidate;


class LoginValidate extends BaseValidate
{
    public function miniAuth()
    {
        $this->validate->addColumn('code')->notEmpty('code 不能为空');
        $this->validate->addColumn('user_data')->notEmpty('user_data 不能为空');
    }


    public function miniLogin()
    {
        $this->validate->addColumn('encryptedData')->notEmpty('encryptedData 不能为空');
        $this->validate->addColumn('iv')->notEmpty('iv 不能为空');
        $this->validate->addColumn('sessionKey')->notEmpty('sessionKey 不能为空');
        $this->validate->addColumn('openid')->notEmpty('openid 不能为空');
    }


}
